package com.jy.rhin.domain.document.submission;

import com.jy.rhin.domain.document.submission.entity.DocumentSubmissionDO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author MaYuXuan
 * @date 2022年6月21日 08:45:19
 * @Description 共享文档提交
 */
@Slf4j
@Service
public class DocumentSubmissionDomainService {

    @Resource
    private DocumentSubmissionDao documentSubmissionDao;

    public Long save(DocumentSubmissionDO submission) {
        submission.init();
        return documentSubmissionDao.save(submission);
    }

    public Long update(DocumentSubmissionDO submission) {
        submission.init();
        return documentSubmissionDao.update(submission);
    }

}
